/**************************************************************************** 
* 
* Copyright (c) 2023  C*Core -   All Rights Reserved  
* 
* THIS SOFTWARE IS DISTRIBUTED "AS IS," AND ALL WARRANTIES ARE DISCLAIMED, 
* INCLUDING MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
* 
* PROJECT     : CCFC2011BC           
* DESCRIPTION : pit demo code 
* HISTORY     : Initial version.
* @file     pit_demo.h
* @version  1.1
* @date     2023 - 02 - 20
* @brief    Initial version.
* 
*****************************************************************************/

#ifndef PIT_DEMO_H_
#define PIT_DEMO_H_
#include "pit_lld.h"
#include "sys.h"

#ifndef FREEZE_MODE_ON
#define FREEZE_MODE_ON      1U
#endif
#ifndef FREEZE_MODE_OFF
#define FREEZE_MODE_OFF     0U
#endif

#define PIT_CASE1           0U
#define PIT_CASE2           0U
#define PIT_CASE3           0U
#define PIT_CASE4           1U
#define PIT_CASE5           0U
#define PIT_CASE6           0U
#define PIT_CASE7           0U

static uint32_t PIT_Test_Case1(uint32_t channel, uint32_t t_time);
static uint32_t PIT_Test_Case2(void);
static uint32_t PIT_Test_Case3(void);
static uint8_t PIT_Test_Case4(void);
static uint32_t PIT_Test_Case5(void);
static uint32_t PIT_Test_Case6(void);
static uint32_t PIT_Test_Case7(void);
extern void PIT_TEST_Demo(void);

#endif /* PIT_DEMO_H_ */
